﻿using SSHTool.Model;

namespace SSHTool.Service
{
    public class AuthService
    {
        public AuthService() { }

        public bool IsAdmin()
        {
            return Constant.CURRENT_ROLE == Constant.AUTH_TYPE_ADMIN;
        }

        public string GetAuthText()
        {
            bool isAdmin = IsAdmin();

            return isAdmin ? Constant.TEXT_ADMIN_TYPE : Constant.TEXT_DEVOPS_TYPE;
        }
    }
}
